package JdbcTest.pojo;



public class Student {
    private int id;
    private String name;
    private boolean sex;
    private String eMail;

    public Student() {
    }

    public Student(int id, String name, boolean sex, String eMail) {
        this.id = id;
        this.name = name;
        this.sex = sex;
        this.eMail = eMail;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isSex() {
        return sex;
    }

    public void setSex(boolean sex) {
        this.sex = sex;
    }

    public String getEMail() {
        return eMail;
    }

    public void setEMail(String eMail) {
        this.eMail = eMail;
    }

    @Override
    public String toString() {
        return "[学号："+this.id+" 姓名："+this.name+" 性别："+(this.sex?"男":"女")+" 邮箱："+this.eMail+"]";
    }
}
